home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIException.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  12KB  |  357 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIException.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIException_h__
  6. #define __gen_nsIException_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIProgrammingLanguage_h__
  14. #include "nsIProgrammingLanguage.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIStackFrame */
  23. #define NS_ISTACKFRAME_IID_STR "91d82105-7c62-4f8b-9779-154277c0ee90"
  24.  
  25. #define NS_ISTACKFRAME_IID \
  26.   {0x91d82105, 0x7c62, 0x4f8b, \
  27.     { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }}
  28.  
  29. class NS_NO_VTABLE nsIStackFrame : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISTACKFRAME_IID)
  33.  
  34.   /* readonly attribute PRUint32 language; */
  35.   NS_IMETHOD GetLanguage(PRUint32 *aLanguage) = 0;
  36.  
  37.   /* readonly attribute string languageName; */
  38.   NS_IMETHOD GetLanguageName(char * *aLanguageName) = 0;
  39.  
  40.   /* readonly attribute string filename; */
  41.   NS_IMETHOD GetFilename(char * *aFilename) = 0;
  42.  
  43.   /* readonly attribute string name; */
  44.   NS_IMETHOD GetName(char * *aName) = 0;
  45.  
  46.   /* readonly attribute PRInt32 lineNumber; */
  47.   NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) = 0;
  48.  
  49.   /* readonly attribute string sourceLine; */
  50.   NS_IMETHOD GetSourceLine(char * *aSourceLine) = 0;
  51.  
  52.   /* readonly attribute nsIStackFrame caller; */
  53.   NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) = 0;
  54.  
  55.   /* string toString (); */
  56.   NS_IMETHOD ToString(char **_retval) = 0;
  57.  
  58. };
  59.  
  60. /* Use this macro when declaring classes that implement this interface. */
  61. #define NS_DECL_NSISTACKFRAME \
  62.   NS_IMETHOD GetLanguage(PRUint32 *aLanguage); \
  63.   NS_IMETHOD GetLanguageName(char * *aLanguageName); \
  64.   NS_IMETHOD GetFilename(char * *aFilename); \
  65.   NS_IMETHOD GetName(char * *aName); \
  66.   NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber); \
  67.   NS_IMETHOD GetSourceLine(char * *aSourceLine); \
  68.   NS_IMETHOD GetCaller(nsIStackFrame * *aCaller); \
  69.   NS_IMETHOD ToString(char **_retval); 
  70.  
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  72. #define NS_FORWARD_NSISTACKFRAME(_to) \
  73.   NS_IMETHOD GetLanguage(PRUint32 *aLanguage) { return _to GetLanguage(aLanguage); } \
  74.   NS_IMETHOD GetLanguageName(char * *aLanguageName) { return _to GetLanguageName(aLanguageName); } \
  75.   NS_IMETHOD GetFilename(char * *aFilename) { return _to GetFilename(aFilename); } \
  76.   NS_IMETHOD GetName(char * *aName) { return _to GetName(aName); } \
  77.   NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) { return _to GetLineNumber(aLineNumber); } \
  78.   NS_IMETHOD GetSourceLine(char * *aSourceLine) { return _to GetSourceLine(aSourceLine); } \
  79.   NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) { return _to GetCaller(aCaller); } \
  80.   NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); } 
  81.  
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  83. #define NS_FORWARD_SAFE_NSISTACKFRAME(_to) \
  84.   NS_IMETHOD GetLanguage(PRUint32 *aLanguage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguage(aLanguage); } \
  85.   NS_IMETHOD GetLanguageName(char * *aLanguageName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguageName(aLanguageName); } \
  86.   NS_IMETHOD GetFilename(char * *aFilename) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
  87.   NS_IMETHOD GetName(char * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  88.   NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
  89.   NS_IMETHOD GetSourceLine(char * *aSourceLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSourceLine(aSourceLine); } \
  90.   NS_IMETHOD GetCaller(nsIStackFrame * *aCaller) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaller(aCaller); } \
  91.   NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } 
  92.  
  93. #if 0
  94. /* Use the code below as a template for the implementation class for this interface. */
  95.  
  96. /* Header file */
  97. class nsStackFrame : public nsIStackFrame
  98. {
  99. public:
  100.   NS_DECL_ISUPPORTS
  101.   NS_DECL_NSISTACKFRAME
  102.  
  103.   nsStackFrame();
  104.  
  105. private:
  106.   ~nsStackFrame();
  107.  
  108. protected:
  109.   /* additional members */
  110. };
  111.  
  112. /* Implementation file */
  113. NS_IMPL_ISUPPORTS1(nsStackFrame, nsIStackFrame)
  114.  
  115. nsStackFrame::nsStackFrame()
  116. {
  117.   /* member initializers and constructor code */
  118. }
  119.  
  120. nsStackFrame::~nsStackFrame()
  121. {
  122.   /* destructor code */
  123. }
  124.  
  125. /* readonly attribute PRUint32 language; */
  126. NS_IMETHODIMP nsStackFrame::GetLanguage(PRUint32 *aLanguage)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* readonly attribute string languageName; */
  132. NS_IMETHODIMP nsStackFrame::GetLanguageName(char * *aLanguageName)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* readonly attribute string filename; */
  138. NS_IMETHODIMP nsStackFrame::GetFilename(char * *aFilename)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* readonly attribute string name; */
  144. NS_IMETHODIMP nsStackFrame::GetName(char * *aName)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* readonly attribute PRInt32 lineNumber; */
  150. NS_IMETHODIMP nsStackFrame::GetLineNumber(PRInt32 *aLineNumber)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* readonly attribute string sourceLine; */
  156. NS_IMETHODIMP nsStackFrame::GetSourceLine(char * *aSourceLine)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* readonly attribute nsIStackFrame caller; */
  162. NS_IMETHODIMP nsStackFrame::GetCaller(nsIStackFrame * *aCaller)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166.  
  167. /* string toString (); */
  168. NS_IMETHODIMP nsStackFrame::ToString(char **_retval)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172.  
  173. /* End of implementation class template. */
  174. #endif
  175.  
  176.  
  177. /* starting interface:    nsIException */
  178. #define NS_IEXCEPTION_IID_STR "f3a8d3b4-c424-4edc-8bf6-8974c983ba78"
  179.  
  180. #define NS_IEXCEPTION_IID \
  181.   {0xf3a8d3b4, 0xc424, 0x4edc, \
  182.     { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }}
  183.  
  184. class NS_NO_VTABLE nsIException : public nsISupports {
  185.  public: 
  186.  
  187.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEXCEPTION_IID)
  188.  
  189.   /* readonly attribute string message; */
  190.   NS_IMETHOD GetMessage(char * *aMessage) = 0;
  191.  
  192.   /* readonly attribute nsresult result; */
  193.   NS_IMETHOD GetResult(nsresult *aResult) = 0;
  194.  
  195.   /* readonly attribute string name; */
  196.   NS_IMETHOD GetName(char * *aName) = 0;
  197.  
  198.   /* readonly attribute string filename; */
  199.   NS_IMETHOD GetFilename(char * *aFilename) = 0;
  200.  
  201.   /* readonly attribute PRUint32 lineNumber; */
  202.   NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) = 0;
  203.  
  204.   /* readonly attribute PRUint32 columnNumber; */
  205.   NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) = 0;
  206.  
  207.   /* readonly attribute nsIStackFrame location; */
  208.   NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) = 0;
  209.  
  210.   /* readonly attribute nsIException inner; */
  211.   NS_IMETHOD GetInner(nsIException * *aInner) = 0;
  212.  
  213.   /* readonly attribute nsISupports data; */
  214.   NS_IMETHOD GetData(nsISupports * *aData) = 0;
  215.  
  216.   /* string toString (); */
  217.   NS_IMETHOD ToString(char **_retval) = 0;
  218.  
  219. };
  220.  
  221. /* Use this macro when declaring classes that implement this interface. */
  222. #define NS_DECL_NSIEXCEPTION \
  223.   NS_IMETHOD GetMessage(char * *aMessage); \
  224.   NS_IMETHOD GetResult(nsresult *aResult); \
  225.   NS_IMETHOD GetName(char * *aName); \
  226.   NS_IMETHOD GetFilename(char * *aFilename); \
  227.   NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber); \
  228.   NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber); \
  229.   NS_IMETHOD GetLocation(nsIStackFrame * *aLocation); \
  230.   NS_IMETHOD GetInner(nsIException * *aInner); \
  231.   NS_IMETHOD GetData(nsISupports * *aData); \
  232.   NS_IMETHOD ToString(char **_retval); 
  233.  
  234. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  235. #define NS_FORWARD_NSIEXCEPTION(_to) \
  236.   NS_IMETHOD GetMessage(char * *aMessage) { return _to GetMessage(aMessage); } \
  237.   NS_IMETHOD GetResult(nsresult *aResult) { return _to GetResult(aResult); } \
  238.   NS_IMETHOD GetName(char * *aName) { return _to GetName(aName); } \
  239.   NS_IMETHOD GetFilename(char * *aFilename) { return _to GetFilename(aFilename); } \
  240.   NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) { return _to GetLineNumber(aLineNumber); } \
  241.   NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) { return _to GetColumnNumber(aColumnNumber); } \
  242.   NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) { return _to GetLocation(aLocation); } \
  243.   NS_IMETHOD GetInner(nsIException * *aInner) { return _to GetInner(aInner); } \
  244.   NS_IMETHOD GetData(nsISupports * *aData) { return _to GetData(aData); } \
  245.   NS_IMETHOD ToString(char **_retval) { return _to ToString(_retval); } 
  246.  
  247. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  248. #define NS_FORWARD_SAFE_NSIEXCEPTION(_to) \
  249.   NS_IMETHOD GetMessage(char * *aMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessage(aMessage); } \
  250.   NS_IMETHOD GetResult(nsresult *aResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \
  251.   NS_IMETHOD GetName(char * *aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  252.   NS_IMETHOD GetFilename(char * *aFilename) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilename(aFilename); } \
  253.   NS_IMETHOD GetLineNumber(PRUint32 *aLineNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
  254.   NS_IMETHOD GetColumnNumber(PRUint32 *aColumnNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
  255.   NS_IMETHOD GetLocation(nsIStackFrame * *aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
  256.   NS_IMETHOD GetInner(nsIException * *aInner) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInner(aInner); } \
  257.   NS_IMETHOD GetData(nsISupports * *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } \
  258.   NS_IMETHOD ToString(char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } 
  259.  
  260. #if 0
  261. /* Use the code below as a template for the implementation class for this interface. */
  262.  
  263. /* Header file */
  264. class nsException : public nsIException
  265. {
  266. public:
  267.   NS_DECL_ISUPPORTS
  268.   NS_DECL_NSIEXCEPTION
  269.  
  270.   nsException();
  271.  
  272. private:
  273.   ~nsException();
  274.  
  275. protected:
  276.   /* additional members */
  277. };
  278.  
  279. /* Implementation file */
  280. NS_IMPL_ISUPPORTS1(nsException, nsIException)
  281.  
  282. nsException::nsException()
  283. {
  284.   /* member initializers and constructor code */
  285. }
  286.  
  287. nsException::~nsException()
  288. {
  289.   /* destructor code */
  290. }
  291.  
  292. /* readonly attribute string message; */
  293. NS_IMETHODIMP nsException::GetMessage(char * *aMessage)
  294. {
  295.     return NS_ERROR_NOT_IMPLEMENTED;
  296. }
  297.  
  298. /* readonly attribute nsresult result; */
  299. NS_IMETHODIMP nsException::GetResult(nsresult *aResult)
  300. {
  301.     return NS_ERROR_NOT_IMPLEMENTED;
  302. }
  303.  
  304. /* readonly attribute string name; */
  305. NS_IMETHODIMP nsException::GetName(char * *aName)
  306. {
  307.     return NS_ERROR_NOT_IMPLEMENTED;
  308. }
  309.  
  310. /* readonly attribute string filename; */
  311. NS_IMETHODIMP nsException::GetFilename(char * *aFilename)
  312. {
  313.     return NS_ERROR_NOT_IMPLEMENTED;
  314. }
  315.  
  316. /* readonly attribute PRUint32 lineNumber; */
  317. NS_IMETHODIMP nsException::GetLineNumber(PRUint32 *aLineNumber)
  318. {
  319.     return NS_ERROR_NOT_IMPLEMENTED;
  320. }
  321.  
  322. /* readonly attribute PRUint32 columnNumber; */
  323. NS_IMETHODIMP nsException::GetColumnNumber(PRUint32 *aColumnNumber)
  324. {
  325.     return NS_ERROR_NOT_IMPLEMENTED;
  326. }
  327.  
  328. /* readonly attribute nsIStackFrame location; */
  329. NS_IMETHODIMP nsException::GetLocation(nsIStackFrame * *aLocation)
  330. {
  331.     return NS_ERROR_NOT_IMPLEMENTED;
  332. }
  333.  
  334. /* readonly attribute nsIException inner; */
  335. NS_IMETHODIMP nsException::GetInner(nsIException * *aInner)
  336. {
  337.     return NS_ERROR_NOT_IMPLEMENTED;
  338. }
  339.  
  340. /* readonly attribute nsISupports data; */
  341. NS_IMETHODIMP nsException::GetData(nsISupports * *aData)
  342. {
  343.     return NS_ERROR_NOT_IMPLEMENTED;
  344. }
  345.  
  346. /* string toString (); */
  347. NS_IMETHODIMP nsException::ToString(char **_retval)
  348. {
  349.     return NS_ERROR_NOT_IMPLEMENTED;
  350. }
  351.  
  352. /* End of implementation class template. */
  353. #endif
  354.  
  355.  
  356. #endif /* __gen_nsIException_h__ */
  357.